Skip to content

Conversation

Priyanka-Chatterjee-2000
Copy link
Contributor

@Priyanka-Chatterjee-2000 Priyanka-Chatterjee-2000 commented Jul 21, 2025

Issue Link: turbot/tailpipe#164

Copy link

Preview Available 🚀

Commit Author: Ved misra
Commit Message: Add CHANGELOG for the SDK update of all the plugins to v0.9.2 (#89)

Preview Link: tailpipe-io-git-docs-update-duckdb-version-requirement-turbot.vercel.app

Co-authored-by: Puskar Basu <45908484+pskrbasu@users.noreply.github.com>
@pskrbasu pskrbasu requested a review from johnsmyth July 24, 2025 15:13
@@ -36,9 +36,12 @@ tailpipe connect --from 2025-01-01
```

> [!NOTE]
> You could use this connection string with DuckDB:
> You can use this connection string with DuckDB to directly query the Tailpipe database.
To ensure compatibility with tables that include JSON columns, make sure you’re using DuckDB version 1.1.3 or later.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that because the JSON extension is installed/enabled by default? Could you also install it in an older version, or disable it in a newer version? Are there any other extensions that are required/recommended?

Copy link
Contributor Author

@Priyanka-Chatterjee-2000 Priyanka-Chatterjee-2000 Sep 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @johnsmyth, sorry for the delayed response. After digging deeper, we realized that the behavior mentioned in this issue comment is not directly related to the JSON column itself.
We created a table in a mydb.duckdb file with a JSON column, and everything works fine there. DuckDB v1.0.0 supports JSON and comes with a built-in, preloaded JSON extension, as documented here. The same extension exists in DuckDB v1.3.2 as well (reference), and both versions behave consistently.
The actual issue is that aws_cloudtrail_log is a view over parquet files defined by DuckDB v1.3.2 in Tailpipe. When we attempt to query this view using DuckDB v1.0.0, the JSON fields are downgraded during binding (e.g., JSON → VARCHAR), which leads to a Binder error during query execution. However, dropping the existing view and redefining the VARCHAR fields as JSON resolves the issue. Hence we require duckdb v1.1.3 and above.

@johnsmyth johnsmyth merged commit 1ef67e0 into main Sep 3, 2025
3 checks passed
@johnsmyth johnsmyth deleted the update-duckdb-version-requirement branch September 3, 2025 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants